package com.onion.auth.support.provider;

import com.onion.auth.support.AuthorizeProvider;
import com.onion.auth.support.vo.AuthUser;

public class DubboAuthProvider implements AuthorizeProvider<String> {

    @Override
    public String getType() {
        return "onion.authc.dubbo";
    }

    @Override
    public AuthUser<String> getAuthUser(String userToken) {
        return null;
    }

    @Override
    public void cacheToken(String userToken, AuthUser<String> authUser) {

    }

    @Override
    public void refreshToken(String usertToken) {

    }

    @Override
    public void clearToken(String userToken) {

    }

    @Override
    public boolean hasRole(String userId, String role) {
        return false;
    }

    @Override
    public boolean hasPermission(String userId, String permission) {
        return false;
    }

}